package com.ygqh.baby.mapper;

import com.ygqh.baby.model.WholesaleSkuModel;
import com.ygqh.baby.po.YgWholesalerSku;
import com.ygqh.baby.po.YgWholesalerSkuExample;
import com.ygqh.baby.ao.QueryInfo;

import java.util.List;

import org.apache.ibatis.annotations.Param;

/**
 * @author Ss
 */
public interface YgWholesalerSkuMapper {
	int countByExample(YgWholesalerSkuExample example);

	int deleteByExample(YgWholesalerSkuExample example);

	int deleteByPrimaryKey(Long id);

	int insert(YgWholesalerSku record);

	int insertSelective(YgWholesalerSku record);

	List<YgWholesalerSku> selectByExample(YgWholesalerSkuExample example);

	YgWholesalerSku selectByPrimaryKey(Long id);

	int updateByExampleSelective(@Param("record") YgWholesalerSku record, @Param("example") YgWholesalerSkuExample example);

	int updateByExample(@Param("record") YgWholesalerSku record, @Param("example") YgWholesalerSkuExample example);

	int updateByPrimaryKeySelective(YgWholesalerSku record);

	int updateByPrimaryKey(YgWholesalerSku record);

	int countSuper(@Param("wholesalerName") String wholesalerName, @Param("productName") String productName);

	List<WholesaleSkuModel> selectSuper(@Param("queryInfo") QueryInfo queryInfo, @Param("wholesalerName") String wholesalerName,
										@Param("productName") String productName);

	List<YgWholesalerSku> selectListBySkuCode(@Param("skuCodeList") List<String> skuCodeList, @Param("wholesalerId") Long wholesalerId);

	int insertBatch(@Param("list") List<YgWholesalerSku> insertList);

	int updateBatch(@Param("list") List<YgWholesalerSku> insertList);

	List<YgWholesalerSku> selectListBySkuCodeAndWholesalerName(@Param("skuCodeList") List<String> skuCodeList,
															   @Param("wholesalerNameList") List<String> wholesalerNameList);
}



